import request from '../utils/request'

//招聘信息--所有
export const hireAll = () => {
  return request.get('/recruit/all')
}

//编辑招聘信息
export const editHire = (data) => {
  return request.put('/recruit/edit', data)
}
// 删除招聘信息
export const deleteHire = (id) => {
  return request.delete('/recruit/delete?id=' + id)
}

//添加招聘信息
export const addHire = (data) => {
  return request.post('/recruit/add', data)
}

//获取简历信息
export const resumeAll = () => {
  return request.get('/resume/all')
}

//编辑简历/面试/录用/详情
export const resumeEdit = (data) => {
  return request.put('/resume/edit', data)
}
